﻿namespace Chain.BLL
{
    using Chain.IDAL;
    using Chain.Model;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Data;
    using System.Runtime.InteropServices;
    public class Mem_Rebate
    {
        private readonly Chain.IDAL.Mem_Rebate dal = new Chain.IDAL.Mem_Rebate();
        public int Add(Chain.Model.Mem_Rebate model)
        {
            return this.dal.Add(model);
        }
        public Chain.Model.Mem_Rebate GetModel(int ID)
        {
            return this.dal.GetModel(ID);
        }
        public Chain.Model.Mem_Rebate GetModel(string strWhere)
        {
            return this.dal.GetModel(strWhere);
        }
        /// <summary>
        /// 返回返利等级
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int GetModelLevel(Chain.Model.Mem_Rebate model)
        {
            return this.dal.GetModelLevel(model);
        }

        public bool UpdateClose(int MemID)
        {
            return this.dal.UpdateClose(MemID);
        }

        public bool IsExist(int MemID)
        {
            return this.dal.IsExist(MemID);
        }
    }
}
